global _start
[section .text]
_start:
	mov eax, 0x2002
	int 0x90
	cmp eax, 0
	jne .parent

.child:
	mov eax, 0x10000006
	mov ebx, 2
	int 0x90
	mov eax, 'B'
	int 0x90
	jmp .child

.parent:
	mov eax, 0x2002
	int 0x90
	cmp eax, 0
	jne .parent2

.child2:
	mov eax, 0x10000006
	mov ebx, 2
	int 0x90
	mov eax, 'C'
	int 0x90
	jmp .child2

.parent2:
	mov eax, 0x2002
	int 0x90
	cmp eax, 0
	jne .parent3

.child3:
	mov eax, 0x10000006
	mov ebx, 1
	int 0x90
	mov eax, 'D'
	int 0x90
	jmp .child3

.parent3:
	mov eax, 0x10000006
	mov ebx, 3
	int 0x90
	mov eax, 'A'
	int 0x90
	jmp .parent3

